// 登录接口携带参数类型
export interface LoginForm {
  username: string
  password: string
}

interface dataType {
  token?: string
  message?: string
}

export interface LoginResponseData {
  code: number
  data: dataType
}

export interface UserInfo {
  userId: string
  avatar: string
  username: string
  passwoed: string
  desc: string
  roles: string[]
  buttons: string[]
  routes: string[]
  token: string
}

export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface UserResponseData extends ResponseData {
  data: {
    checkUser: UserInfo
  }
}
